Skip to content

Conversation

chenyukang
Copy link
Member

@chenyukang chenyukang commented Oct 4, 2025

Fixes #147070

From comments: #147070 (comment)
The lightlight row for diff must at least 2.

r? @estebank

@rustbot
Copy link
Collaborator

rustbot commented Oct 4, 2025

rustc_errors::emitter was changed

cc @Muscraft

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 4, 2025
@chenyukang
Copy link
Member Author

current output:
image

@chenyukang
Copy link
Member Author

The output for tests/ui/mismatched_types/newlines-in-diagnostic-fix-suggestions-92741.rs is also fixed.

Before:
image

Now:
image

@estebank
Copy link
Contributor

estebank commented Oct 7, 2025

r=me after addressing comments

@chenyukang chenyukang force-pushed the yukang-fix-147070-wrong-highlight-span branch 4 times, most recently from 83a0258 to 4fcd3c0 Compare October 7, 2025 02:43
@chenyukang chenyukang force-pushed the yukang-fix-147070-wrong-highlight-span branch from 4fcd3c0 to 231c395 Compare October 7, 2025 02:46
@chenyukang
Copy link
Member Author

@bors r=estebank

@bors
Copy link
Collaborator

bors commented Oct 7, 2025

📌 Commit 231c395 has been approved by estebank

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 7, 2025
bors added a commit that referenced this pull request Oct 7, 2025
Rollup of 7 pull requests

Successful merges:

 - #145495 (Use declarative macro for `#[derive(TryFromU32)]`)
 - #147165 (test: Subtract code_offset from width for ui_testing)
 - #147354 (Fix wrong span for hightlight for duplicated diff lines)
 - #147395 (Improve diagnostics: update note and add help message)
 - #147396 (Fluent tidy improvements)
 - #147407 (Update books)
 - #147413 (don't panic on extern with just multiple quotes in the name)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit f64703c into rust-lang:master Oct 7, 2025
10 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 7, 2025
rust-timer added a commit that referenced this pull request Oct 7, 2025
Rollup merge of #147354 - chenyukang:yukang-fix-147070-wrong-highlight-span, r=estebank

Fix wrong span for hightlight for duplicated diff lines

Fixes #147070

From comments: #147070 (comment)
The lightlight row for diff must at least 2.

r? `@estebank`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 7, 2025
…fmease

Print tip for human error format in runtest

When working on rust-lang#147354, spent some time to figure out that there is `//~ ERROR` left on test file, this PR will give a better error message for this scenario.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Red highlighting in the wrong spot in the "help: remove the extra argument" message
5 participants